<?php

declare(strict_types=1);

namespace app\admin\controller\system;


use think\response\Json;
use app\admin\controller\Controller;
use app\common\service\ConfigService;

class Common extends Controller
{
    public function saveConfig()
    {
        $params = $this->request->param();
        $res = ConfigService::set('theme', 'color', $params['color']);
        return success('success');
    }
}